
{% extends "base.html" %}
{% block content %}
{{mensagem}}
<form action="{{action_context}}" method="POST">{% csrf_token %}
    <table border="0">
        {% for field in form %}
        <tbody>
            <tr>
                <td align="right" width="30%">{% if filed.required %}*{% endif %}{{ field.label_tag }}:</td>
                <td align="left">{{ field }}</td>
            </tr>
            <tr>
                <td align="left"></td>
            </tr>
            {% if field.errors %}<tr><td></td><td>{{ field.errors }}</td></tr>{% endif %}
            {% endfor %}
            <tr>
                <td></td>
                <td align="left">
                    <input type="submit" value="Cadastrar"/>
                    <input type="button" value="Voltar" onclick="history.go(-1)"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
{% endblock %}